package com.popchan.manager
{
	import flash.display.DisplayObject;
	import flash.events.Event;
	
	/**
	 * 拖动事件
	 * create 2013
	 * @author chenbo,305976643@qq.com,All rights reserved
	 * 
	 */
	public class DragEvent extends Event
	{
		public static const DRAG_ENTER:String="dragEnter";
		public static const DRAG_DROP:String="dragDrop";
		private var _dragData:Object;
		public var dragSource:DisplayObject; 
		public function DragEvent(type:String,data:Object=null,source:DisplayObject=null ,bubbles:Boolean=false, cancelable:Boolean=false)
		{
			_dragData=data;
			dragSource=source;
			super(type, bubbles, cancelable);
		}

		public function get dragData():Object
		{
			return _dragData;
		}

		public function set dragData(value:Object):void
		{
			_dragData = value;
		}
		
		override public function clone():Event
		{
			return new DragEvent(type,_dragData,dragSource,bubbles, cancelable);
		}
		
		
		/*override public function clone():DragEvent
		{
			return new DragEvent(type,_dragData,dragSource,bubbles, cancelable);
		}*/
		

	}
}